package com.cancer.biz.common.exception;

import java.lang.Thread.UncaughtExceptionHandler;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.cancer.common.util.ExceptionUtil;


public class SysDefaultUncaughtExceptionHandler implements UncaughtExceptionHandler {
	private static Logger logger = LoggerFactory.getLogger(SysDefaultUncaughtExceptionHandler.class);

	@Override
	public void uncaughtException(Thread t, Throwable e) {
		logger.error("discover an uncaught exception. thread: {}, exception message: {}", t, ExceptionUtil.getStackTrace(e));
	}
}
